const path = require('path');

function resolve(dir) {
  return path.join(__dirname, dir);
}
module.exports = {
  publicPath:'/museum/',
  configureWebpack: {
    externals: {
     d3: "window.d3",
     BMap: 'window.BMap',
     BMapLib:'window.BMapLib',
     $:'window.$',
     echarts:'window.echarts'
    }
   },
  chainWebpack: (config) => {
    config.resolve.alias
      .set('@', resolve('src'))
      .set('assets',resolve('src/assets'))
      .set('utils',resolve('src/utils'))
      .set('api',resolve('src/api'))
      .set('views',resolve('src/views'))
      .set('components',resolve('src/components'))
  }
};
